package com.jsz.peini.mapper.square;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

import com.jsz.peini.bean.square.SquareImage;
import com.jsz.peini.bean.square.SquareInfo;

public interface SquareInfoMapper {

    int insert(SquareInfo record);

    HashMap<String,Object> selectLastByUserId(String userId);

    int setSquareInfoBySquareInfo(SquareInfo squareInfo);
    
    SquareInfo selectSquareInfoIdByUserId(String userId);
    
    int setSquareImageBySquareInfoId(SquareImage squareImage);
    
    List<LinkedHashMap<String,Object>> selectsquareImageBySquareInfoId(int squareInfoId);
    
    int deleteSquareImageInfo(int squareInfoId);
    
    int deleteSquareImageLike(int squareInfoId);
    
    int deleteSquareImageComment(int squareInfoId);
    
    int deleteSquareImageImage(int squareInfoId);
    
    List<LinkedHashMap<String,Object>> selectSquareListByUserId(String userId);

	SquareInfo selectByPrimaryKey(Integer squareInfoId);
    
}